﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucItemDetail.ascx.cs"
    Inherits="usercontrol_ucItemDetail" %>
<!-- Place this render call where appropriate -->

<script type="text/javascript">
    window.___gcfg = { lang: 'vi' };

    (function() {
        var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
        po.src = 'https://apis.google.com/js/plusone.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
</script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:FormView ID="frmViewDetail" runat="server">
            <ItemTemplate>
                <table id="hienthi">
                    <tr>
                        <td style="width: 280px; height: 250px; text-align: center;" valign="top">
                            <asp:Image ID="imgItem" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/images/items/" + Eval("ImageURL") + "&width=200&heigh=200&dd=true" %>'
                                ToolTip='<%# Eval("ItemName") %>' />

                            <br />
                            <asp:ImageButton ID="btnvote" runat="server" ImageUrl="~/images/VOTE.png" Height="32px"
                                OnClick="btnvote_Click" />
                            <asp:Label ID="lbvote" runat="server" Text='<%# Eval("Vote") %>'></asp:Label>
                            <br />
                            <asp:HyperLink ID="lnkViewItemImages" runat="server" NavigateUrl='<%#"~/ViewImage.aspx?keepThis=true&TB_iframe=true&width=600&height=510&ID=" + Eval("ItemID") %>'
                                ToolTip="Xem ảnh" CssClass="thickbox">Xem ảnh</asp:HyperLink>
                            |
                            <asp:HyperLink ID="hypsosanh" runat="server">So sánh</asp:HyperLink>
                            |
                            <asp:HyperLink ID="hyp4rom" runat="server" NavigateUrl="#">Diễn Đàn</asp:HyperLink>
                            <br />
                        </td>
                        <td valign="top">
                            <table cellpadding="3" cellspacing="3" width="100%">
                                <tr id="hr">
                                    <td>
                                        <h3>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Server.HtmlDecode(Eval("ItemName").ToString())%>'></asp:Label></h3>
                                        Giá bán :
                                        <asp:Label ID="lblPrice1" runat="server" Text='<%# double.Parse(Eval("BaseSellingPrice").ToString()).ToString("0,00.##")%>'
                                            CssClass="clsTotalPriceCart"></asp:Label>
                                        (Đã bao gồm VAT)
                                        <br />
                                        Số Seri: <strong>
                                            <asp:Label ID="lblCode" runat="server" Text='<%# Eval("ItemNumber") %>'></asp:Label></strong>
                                        <br />
                                        <br />
                                        <asp:ImageButton ID="cmdMua" runat="server" ImageUrl="~/images/bt_addtocart.png"
                                            OnClick="cmdMua_Click" />
                                        &nbsp;&nbsp;
                                        <asp:Label ID="lblInfoAddCart" runat="server" Text="" ForeColor="Red"></asp:Label>
                                        <g:plusone></g:plusone>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <h3>
                                            Thông tin sản phẩm</h3>
                                        <%# Server.HtmlDecode(Eval("ItemDescription").ToString())%>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:FormView>
    </ContentTemplate>
</asp:UpdatePanel>
